package com.ssn.builder.computer;

public class Director {
    private ComputerBuilder computerBuilder;

    public void setComputerBuilder(ComputerBuilder computerBuilder) {
        this.computerBuilder = computerBuilder;
    }
    public Computer build(){
        computerBuilder.setBrand();
        computerBuilder.setCpu();
        computerBuilder.setRam();
        computerBuilder.setUsb();
        computerBuilder.setGraph();
        return computerBuilder.getComputer();
    }
}
